import request from '@/utils/request'

// 查询销毁详情列表
export function listDestroyDetail(query) {
  return request({
    url: '/archive/destroyDetail/list',
    method: 'get',
    params: query
  })
}

// 查询销毁详情详细
export function getDestroyDetail(destroyDetailId) {
  return request({
    url: '/archive/destroyDetail/' + destroyDetailId,
    method: 'get'
  })
}

// 新增销毁详情
export function addDestroyDetail(data) {
  return request({
    url: '/archive/destroyDetail',
    method: 'post',
    data: data
  })
}

// 修改销毁详情
export function updateDestroyDetail(data) {
  return request({
    url: '/archive/destroyDetail',
    method: 'put',
    data: data
  })
}

// 删除销毁详情
export function delDestroyDetail(destroyDetailId) {
  return request({
    url: '/archive/destroyDetail/' + destroyDetailId,
    method: 'delete'
  })
}
